import { api } from 'boot/axios'
const LOGIN_URL = '/house/auth/admin/login'
const LOGIN_REFRESH_TOKEN_URL = '/house/auth/refresh'
export function login(username: string, password: string) {
  return api.post(LOGIN_URL, { username, password })
}
export function refreshToken(refreshToken: string) {
  return api.post(LOGIN_REFRESH_TOKEN_URL, { refreshToken })
}
